<?php
$this->breadcrumbs=array(
	(UserModule::t('Users'))=>array('admin'),
	$model->username=>array('view','id'=>$model->id),
	(UserModule::t('Update')),
);
?>

<?php 
$userid = Yii::app()->user->id;
$user = User::model()->find('id=:ID ',array(':ID'=>$userid));
$unit_level = $user->unit_level;
?>

<div id="page-header">
	<h1><?php echo  UserModule::t('编辑用户'); ?></h1>
    <div id="page-options">
	<?php $this->renderPartial('_menu',array(
    'model'=>$model,
	'unit_level' => $unit_level
    )); ?>
    </div>
</div>


<?php 
	echo $this->renderPartial('_form', array('model'=>$model,'profile'=>$profile)); ?>